package com.ny.demo;
import java.util.Scanner;
public class Test16 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int x = scanner.nextInt();
        System.out.println("请输入第二个数");
        int y = scanner.nextInt();
        test02(x,y);
    }
//2.有参数无返回值:参数的写法：数据类型 形参
//求两个整数的和：
    public  static void test02(int a,int b){
        //从键盘输入两个整数
        int sum = a+b;
        System.out.println(sum);
    }
}